<?php

namespace app\admin\validate;

use think\Validate;

class SysPost extends Validate
{
    protected $rule = [
        'post_name'=> 'require',
        'post_code'=> 'require',
        'post_sort'=>'require|number',
        'status'=>["require","in"=>"0,1"]
    ];

    protected $message = [
        'post_name'=> '岗位名称必须',
        'post_code'=>'岗位编码必须',
        'post_sort.require'=>'排序必须',
        'post_sort.number'=>'排序必须为数字',
        'status.require'=>'状态必须',
        'status.in'=>'状态数值错误',
    ];
}
